package com.it.salon.demo.marketing.activity.center.admin;

import com.it.salon.demo.marketing.activity.center.admin.event.DemoEvent;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class AdminApp {
    public static void main(String[] args) {
        System.out.println(Thread.currentThread().getName());
        ConfigurableApplicationContext applicationContext =
                SpringApplication.run(AdminApp.class, args);
        applicationContext.publishEvent(new DemoEvent("张三"));
        System.out.println("over");
    }
}
